import { sendRequest } from '@/http';

/**
 * 账号列表查询参数
 */
export interface AccountListParams {
  pageNum: number;
  pageSize: number;
  serviceContent?: string; // 服务内容
  elderName?: string; // 客户姓名
  stationId?: string; // 服务站点 ID
}
export function queryElderArchives(params: AccountListParams) {
  return sendRequest({
    url: `/admin/elder/queryElderArchives`,
    method: 'get',
    params,
  });
}
// 创建客户档案
export function createElder(data: any) {
  return sendRequest({
    url: `/admin/elder/createElder`,
    method: 'post',
    data,
  });
}
// 查看详情
export function getElderDetail(elderId: any) {
  return sendRequest({
    url: `/admin/elder/getElderDetail`,
    method: 'get',
    params: { elderId },
  });
}
// 编辑客户档案
export function updateElder(data: any) {
  return sendRequest({
    url: `/admin/elder/updateElder`,
    method: 'post',
    data,
  });
}
